var Overlay = {

    data : new Array(),
    
    show : function(name)
    {
        $("html").css("min-height", "100%");
        var height = $(window).height();
	
		$("#" + name + "Overlay").click(function(){
            Overlay.hide(name);
        });
        
		$("#" + name + "Overlay").fadeTo(0, 0);
        $("#" + name + "Overlay").css({display: 'block', backgroundColor: '#000000', left: '0px', width: '100%', height: height + 'px', position: 'fixed', top: '0px', zIndex: 0}); 
        $("#" + name + "OverlayInner").css({ position: 'fixed'}); 
    
        $("#" + name + "Overlay").css("z-index", "106");
		$("#" + name + "OverlayInner").css("z-index", "106");
		$("#" + name + "Overlay").fadeTo(200, 0.7);
		$("#" + name + "OverlayInner").fadeTo(200, 1);
		return false;
	},
    
    hide : function(name)
    {
        $("#" + name + "Overlay").fadeTo(200, 0, function(){ $(this).css('display', 'none')});
		$("#" + name + "OverlayInner").fadeTo(200, 0, function(){ $(this).css('display', 'none')});
		
    
    }
}